home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / rTutors / part2.5 / rTutor.make < prev    next >
Encoding:
Text File  |  1990-06-19  |  1.3 KB  |  37 lines  |  [TEXT/pdos]

  1. * Just to be sure everybody gets to read all this stuff, let's turn on echo
  2. set echo on
  3. *
  4. *
  5. * This exec file will compile, link, etc to produce the rTutor.S16 application
  6. *
  7. * First, we compile and link the APW C source to produce the data fork
  8. *
  9. compile rtutor.cc keep=$
  10. linkIIGS 2/start.root rtutor.root -lib 2/clib -t exe -o rtutor.dfork
  11. *
  12. * Second, we compile the Rez source to create the resource fork
  13. * be sure to set the resulting file type to that of a "resource only file"
  14. * see Apple II File Type Note for file type $5E
  15. compile rtutor.rez keep=rtutor.rfork rez=(-t $5E)
  16. *
  17. * Now put the pieces together to form the complete app
  18. * First, we delete the old app (which may or may not exist)
  19. * To protect against this script exiting if we try to delete a file
  20. * that doesn't exist, we'll just turn off the "exit" variable before
  21. * we try to delete the file.  Turn it back on afterwards to catch other
  22. * errors
  23. unset exit
  24. delete rtutor.s16
  25. set exit on
  26. * Copy the data fork to the new app
  27. duplicate -d rtutor.dfork rtutor.s16
  28. * Copy the resource fork to the new app
  29. duplicate -r rtutor.rfork rtutor.s16
  30. *
  31. * Set the file type of the resulting application to S16
  32. filetype rtutor.s16 s16
  33. *
  34. * That's it, go run the app and then study it to learn more about how
  35. * wonderful resources are!!
  36. *
  37.